//导入requset
import request from "@/utils/request";
//首页面经列表
export const getArticleList = ({current,pageSize,sorter}) =>{
    return request.get('/h5/interview/query',{
        params:{
            current,pageSize,sorter
        }
    })
}
//面经详情
export const getArticleInfo = id=>{
    return request.get('/h5/interview/show',{
        params:{
            id
        }
    })
}
//切换面经点赞
export const changeLike = id =>{
    return request.post('/h5/interview/opt',{
        id,
        optType:1
    })
}
//切换面经收藏页面
export const changeCollect  = id =>{
    return request.post('/h5/interview/opt',{
        id,
        optType:2
    })
}
//收藏页面
export const getCollectList = ({page,pageSize}) => {
    return request.get('/h5/interview/opt/list',{
        params:{
            page,pageSize,optType:2
        }
    })
}
//喜欢页面
//收藏页面
export const getLikeList = ({page,pageSize}) => {
    return request.get('/h5/interview/opt/list',{
        params:{
            page,pageSize,optType:1
        }
    })
}